package encrypt

// 字符串摘要

import (
	"crypto/md5"
	"crypto/sha512"
	"encoding/hex"
)

func Encrypt(s string) string {
	buf := sha512.Sum512([]byte(s))
	b := md5.Sum(buf[:])
	return hex.EncodeToString(b[:])
}
